﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Ghasam.Business" namespace="Ghasam.Business.Domain.Entity">
	<class name ="Ghasam.Business.Domain.Entity.Stock,Ghasam.Business" table ="Stock" lazy ="false">
		<id name="Id" type="Int32">
			<column name="ID" length="4" sql-type="int" not-null="true" unique="true"/>
      <generator class="native" />
		</id>
		<property name="StockName" type="string">
			<column name="Name" length="50" sql-type="nvarchar" not-null="false"/>
		</property>
		<property name="BinNumber" type="string">
			<column name="BinNumber" length="50" sql-type="nvarchar" not-null="true"/>
		</property>
		<property name="Serial" type="string">
			<column name="Serial" length="50" sql-type="nvarchar" not-null="false"/>
		</property>
		<property name="Quantity" type="Int32">
			<column name="Quantity" length="4" sql-type="int" not-null="false"/>
		</property>
		<property name="OrderPoint" type="Int32">
			<column name="OrderPoint" length="4" sql-type="int" not-null="false"/>
		</property>
		<many-to-one name="StockStatus" column="StatusId" class="StockStatus" />
		<property name="Description" type="string">
			<column name="Description" length="100" sql-type="nvarchar" not-null="false"/>
		</property>
		<property name="ImportDate" type="DateTime">
			<column name="ImportDate" length="8" sql-type="DateTime" not-null="false"/>
		</property>
		<property name="ModifyStamp" type="DateTime">
			<column name="ModifyStamp" length="8" sql-type="DateTime" not-null="false"/>
		</property>
	</class>
</hibernate-mapping>
